Skip to content

[#358] Remove Rising and Completed sort options from home page#364

Merged
realproject7 merged 1 commit intomainfrom
task/358-remove-sort-options
Mar 19, 2026
Merged

[#358] Remove Rising and Completed sort options from home page#364
realproject7 merged 1 commit intomainfrom
task/358-remove-sort-options

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Removed "Rising" and "Completed" from sort dropdown in FilterBar.tsx
  • Removed corresponding case branches in page.tsx (completed query + rising call)
  • Removed getRisingStorylines from lib/ranking.ts (no longer used)
  • Default sort remains "Recent"; "Trending" still available

Fixes #358

Files changed

  • src/components/FilterBar.tsx — removed 2 sort options
  • src/app/page.tsx — removed import, TABS entries, and case branches
  • lib/ranking.ts — removed getRisingStorylines (120 lines)

Test plan

  • next build passes
  • Home page sort dropdown shows only "Recent" and "Trending"
  • URLs with ?tab=rising or ?tab=completed gracefully fall back to "Recent"

🤖 Generated with Claude Code

Remove "Rising" and "Completed" from sort options, case branches,
and the getRisingStorylines function from ranking.ts. Both were
redundant/unused with the current storyline count.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The PR matches issue #358 and removes the redundant Rising and Completed sort paths cleanly from the filter UI, page query logic, and ranking helpers. The change is focused and leaves Recent/Trending as the only supported tabs, which matches the requested cleanup.

Findings

  • No correctness or design issues found in the submitted diff.

Decision

Approved on code review. lint-and-typecheck was still pending at the time of review, so merge should still wait for required GitHub checks.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Clean removal of Rising/Completed — sort options, case branches, and ~120 lines of getRisingStorylines all gone. TABS type narrows correctly. Old URLs fall back to Recent. Approved.

@realproject7 realproject7 merged commit f7656f6 into main Mar 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Cleanup] Remove 'Rising' and 'Completed' sort options from home page

2 participants